﻿using System;

namespace JustinAngel.Neurons.Framework.Navigation
{
    public class DelayNavigateToMessage : NavigateToMessage
    {
        public DelayNavigateToMessage(NavigationTarget navigationTarget)
            : this(navigationTarget, TimeSpan.FromSeconds(1))
        {
        }

        public DelayNavigateToMessage(NavigationTarget navigationTarget, TimeSpan delay) : base(navigationTarget)
        {
            Delay = delay;
        }

        public DelayNavigateToMessage(NavigationTarget navigationTarget, Action actionToFireAfterNavigation) : base(navigationTarget, actionToFireAfterNavigation)
        {
            Delay = TimeSpan.FromSeconds(1);
        }

        public TimeSpan Delay { get; set; }
    }
}